#include<stdio.h>
#include<stdlib.h>
#include<unistd.h>

extern char** environ;

int main(int argc, char* argv[])
{
    (void)argc;
    (void)argv;

    if(fork() == 0)
    {
        for(int i = 0; environ[i]; i++)
        {
            printf("environ[%d]：%s\n", i, environ[i]);
        }
    }
    sleep(1);

    return 0;
}
